cmake_minimum_required(VERSION 3.4)
project(voro++ LANGUAGES CXX)

add_library(${PROJECT_NAME} ${VOROPP_SRC_DIR}/src/voro++.cc)
set_target_properties(${PROJECT_NAME} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)

include(GNUInstallDirs)
install(TARGETS ${PROJECT_NAME}
  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

file(GLOB VOROPP_HEADERS ${VOROPP_SRC_DIR}/src/*.hh)
install(FILES ${VOROPP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/voro++)
